home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjcheck11.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-11  |  1.6 KB  |  62 lines

  1. // Design Time Java Button  implementation. (HPP)
  2.  
  3. #ifndef _DTJCHECK11_HPP
  4. #define _DTJCHECK11_HPP
  5.  
  6. #include "dtjcomp11.hpp"
  7.  
  8. class WJavaObject;
  9.  
  10. class METAEXPORTCLASSDEF DTJCheckBox11 : public DTJComponent11
  11. {
  12.     public:
  13.         DTJCheckBox11( const MetaObject * pMetaObj );
  14.         virtual ~DTJCheckBox11();
  15.  
  16.     //
  17.     // DefaultStyle
  18.     //
  19.     //    The style with which new instances are created.  Default
  20.     //    implementation returns GetWindow()->GetDefaultStyle().
  21.  
  22.     virtual WStyle        GetDefaultStyle() const;
  23.  
  24.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  25.                    ostream& src,
  26.                    MMCodeGenerationParms& pGenParms );
  27.  
  28.         // Group
  29.         //
  30.         //    The variable name of the CheckboxGroup object.
  31.         
  32.         virtual const WString & GetGroup() const;
  33.         
  34.         virtual WBool SetGroup( const WChar * val );
  35.         
  36.         // GroupObj
  37.         //
  38.         //    The CheckboxGroup object (only used for Java form painting).
  39.         
  40.         virtual WJavaObject * GetGroupObj() const;
  41.         
  42.         virtual void SetGroupObj( WJavaObject * groupObj );
  43.  
  44.         virtual WJavaObject * FindGroupObj( const WString & group );
  45.         
  46.     virtual void GenClassName( WString & className ) const;
  47.  
  48.     protected:
  49.         WString _group;
  50.         WJavaObject * _groupObj;
  51. };
  52.  
  53. class MMPropertyControl;
  54. class MTPropertyControl;
  55. extern MTPropertyControl * WCMDEF MakeJGroupList(const MMPropertyControl * c );
  56.  
  57. // needed for mdreader
  58. typedef DTJCheckBox11 DTjava__dot__awt__dot__Checkbox__dot__11;
  59. typedef WCheckBox java__dot__awt__dot__Checkbox__dot__11;
  60.  
  61. #endif // _DTJCHECK11_HPP
  62.